package com.flyco.modules.stm.service;

import com.flyco.modules.stm.entity.StmChannelProduct;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * @Description: 渠道产品表
 * @Author: flyco
 * @Date:   2023-06-21
 * @Version: V1.0
 */
public interface IStmChannelProductService extends IService<StmChannelProduct> {

    List<StmChannelProduct> getByChannelIdAndProductSnAndBeginTime(Integer channelId, String productSn, Date beginTime);
    void mergeIntoChannelProduct(String productApplyItemId);
    void mergeIntoChannelProductByApplyId(Integer applyId);
    List<StmChannelProduct> getByChannelId(Integer channelId);
//    void setChannelProductStatus();

    /**
     * 返回一条商品的有效价格记录，没有返回null
     */
    StmChannelProduct getValidateByChannelIdAndProductSn(Integer channelId, String productSn);
}
